Contents | Index | < Browse | Browse >
LETTERcosULETTER
Cosine function.
Overview
#include <math.h>
r = cos(x)
double r; // result
double x; // angle
Portability
ANSI
Description
This function calculates the cosine of the specified angle expressed in
radians.
Note
Of course all trigonometric functions require the angle be expressed in
radians. Pass the angle "w" expressed in degrees to
x = PI/180 * w
to receive its equivalent in radians in "x".
See also
cosh , sin